package com.good.domain.models;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;


public enum SexModel {
    male(0,"男"),
    female(1,"女");
    private SexModel(int code, String description){
        this.Code=code;
        this.Description=description;
    }
    @JsonValue
    private String Description;
    @EnumValue
    private  int Code;

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        Code = code;
    }



    @Override
    public String toString() {
        return "SexModel{" +
                "Description='" + Description + '\'' +
                ", Code=" + Code +
                '}';
    }
}
